package com.tuling.elasticsearch.convert;

import com.tuling.dal.entity.PmsProduct;
import com.tuling.elasticsearch.entity.Product;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface ProductConvert {

    Product pmsProduct2Product(PmsProduct pmsProduct);

    List<Product> pmsProducts2Products(List<PmsProduct> pmsProducts);
}
